//
//  NSString+NSDateToNSString.m
//  YuErmuYing
//
//  Created by Tiancheng on 16/8/19.
//  Copyright © 2016年 Tiancheng. All rights reserved.
//

#import "NSString+NSDateToNSString.h"

@implementation NSString (NSDateToNSString)
+(NSString *)StringNSDateToNSString:(NSString*)timeStamp;
{
    NSDate *date2 = [NSDate dateWithTimeIntervalSince1970:([timeStamp doubleValue])];
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSString *strDate = [dateFormatter stringFromDate:date2];
    return strDate;
}
@end
